$gwx_XC_41=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){
if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx_XC_41 || [];
function gz$gwx_XC_41_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_XC_41_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_41_1
__WXML_GLOBAL__.ops_cached.$gwx_XC_41_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([1,true])
Z([[7],[3,'color']])
Z([[7],[3,'title']])
Z([[7],[3,'waiting']])
Z([3,'formSubmit'])
Z([[2,'!='],[[7],[3,'nickname']],[1,'']])
})(__WXML_GLOBAL__.ops_cached.$gwx_XC_41_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_41_1
}
__WXML_GLOBAL__.ops_set.$gwx_XC_41=z;
__WXML_GLOBAL__.ops_init.$gwx_XC_41=true;
var x=['./pages/setting/setting.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_XC_41_1()
var oDM=_mz(z,'navigation-bar',['back',0,'color',1,'title',1],[],e,s,gg)
_(r,oDM)
var xEM=_n('waiting-pop')
_rz(z,xEM,'waiting',3,e,s,gg)
_(r,xEM)
var oFM=_n('form')
_rz(z,oFM,'bindsubmit',4,e,s,gg)
var fGM=_v()
_(oFM,fGM)
if(_oz(z,5,e,s,gg)){fGM.wxVkey=1
}
fGM.wxXCkey=1
_(r,oFM)
return r
}
e_[x[0]]=e_[x[0]]||{f:m0,j:[],i:[],ti:[],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
;g="$gwx_XC_41";var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
;g="";
return root;
}
}
}
}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_41();	if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/setting/setting.wxml'] = [$gwx_XC_41, './pages/setting/setting.wxml'];else __wxAppCode__['pages/setting/setting.wxml'] = $gwx_XC_41( './pages/setting/setting.wxml' );
	;__wxRoute = "pages/setting/setting";__wxRouteBegin = true;__wxAppCurrentFile__="pages/setting/setting.js";define("pages/setting/setting.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){
"use strict";var a=getApp();Page({data:{title:"个人设置",color:"#FFFFFF",waiting:!1,url:"",all_url:"",nickname:"",userInfo:""},onLoad:function(a){},onReady:function(){},onShow:function(){this.getUserInfo()},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},getUserInfo:function(){var t=this;a.ajax({url:"User/User/userInfo",data:{},success:function(a){1e3==a.data.code&&t.setData({nickname:a.data.data.nickname,all_url:a.data.data.avatar_url,userInfo:a.data.data})}})},chooseImage:function(){var a=this;wx.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){var e=t.tempFilePaths;a.setData({waiting:!0}),a.uploadImage(e[0])}})},uploadImage:function(t){var e=this;wx.uploadFile({url:a.globalData._url+"api/Upload/uploadImg",filePath:t,name:"file",success:function(t){var n=JSON.parse(t.data);1e3==n.code?e.setData({url:n.data.url,all_url:n.data.all_url}):a.showToast("上传失败，请重试"),e.setData({waiting:!1})}})},inputNickname:function(a){var t=a.detail.value;this.setData({nickname:t})},deleteInput:function(){this.setData({nickname:""})},formSubmit:function(t){var e=this,n=e.data.url,o=e.data.nickname;if(""==o)return a.showToast("请输入昵称"),!1;a.ajax({url:"User/User/editUser",data:{name:o,url:n},success:function(t){a.showToast(t.data.msg),1e3==t.data.code&&e.getUserInfo()}})},goRealName:function(){wx.navigateTo({url:"../realName/realNameA/realNameA"})}});
},{isPage:true,isComponent:true,currentFile:'pages/setting/setting.js'});require("pages/setting/setting.js");